Пример #1
0
 private String decodeWhile(final String s) {
   String result = s;
   try {
     result = URLDecoder.decode(result, Smartly.getCharset());
     while (result.contains("%")) {
       try {
         result = URLDecoder.decode(result, Smartly.getCharset());
       } catch (Throwable ignored) {
         break;
       }
     }
   } catch (UnsupportedEncodingException ignored) {
   }
   return result;
 }
Пример #2
0
 public String decode(final String s) {
   try {
     return URLDecoder.decode(s, Smartly.getCharset());
   } catch (UnsupportedEncodingException ignored) {
   }
   return s;
 }
 // ------------------------------------------------------------------------
 //                      Constructor
 // ------------------------------------------------------------------------
 public CMSPageEntityService() throws StandardCodedException {
   super(CMSDBFactory.getInstance().getDBMain(), CMSPageEntity.COLLECTION, Smartly.getLanguages());
 }