curseknight / phurl

Automatically exported from code.google.com/p/phurl
0 stars 0 forks source link

mailto protocol #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I can't use mailto protocol
2.It seems after shortening like http://mailto:email@email.com

What is the expected output? What do you see instead?
http://domain.com/Iudns93
http://mailto:email@email.com

What version of the product are you using? On what operating system?
3.3 beta

Please provide any additional information below.

Original issue reported on code.google.com by vlad.pes...@mail.ru on 18 Jul 2010 at 3:03

GoogleCodeExporter commented 9 years ago
something like this may fix it
#^(https|http|ftp|ftps|news|mms|rtmp|rtmpt|e2dk)://|(mailto|javascript):#i

because mailto requires just :
where everything else requires ://
so you have to separate them
(i added in javascript for bookmarklets, but dont know if the redirection would 
actually make it work)

Original comment by itspa...@gmail.com on 20 Jul 2010 at 5:14

GoogleCodeExporter commented 9 years ago
Don't understood where to paste this:
#^(https|http|ftp|ftps|news|mms|rtmp|rtmpt|e2dk)://|(mailto|javascript):#i
please for dummies :)
My config.php contains this:
define("URL_PROTOCOLS", "http|https|ftp|ftps|mailto|news|mms|rtmp|rtmpt|e2dk");

Original comment by vlad.pes...@mail.ru on 23 Jul 2010 at 9:54

GoogleCodeExporter commented 9 years ago
open index.php replace
    if (!preg_match("/^(".URL_PROTOCOLS.")\:\/\//i", $url)) {
with
    if (!preg_match("#^(https|http|ftp|ftps|news|mms|rtmp|rtmpt|e2dk)://|(mailto|javascript):#i", $url)) {

if you dont want javascript, delete |javascript

Original comment by itspa...@gmail.com on 23 Jul 2010 at 2:25

GoogleCodeExporter commented 9 years ago
:( 
Error "Please enter a valid URL to shorten."

Original comment by vlad.pes...@mail.ru on 24 Jul 2010 at 4:36

GoogleCodeExporter commented 9 years ago
This will be fixed in the next update

Original comment by julfo%ju...@gtempaccount.com on 26 Jul 2010 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 26 Oct 2010 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 26 Oct 2010 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by hcblahb...@gmail.com on 28 Oct 2010 at 12:10

GoogleCodeExporter commented 9 years ago
not fixed in  last version 2.4.2 :(

Original comment by 38050475...@gmail.com on 1 Jan 2011 at 5:48